<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp" %>
<jsp:include page="/WEB-INF/jsp_lib/showimage.jsp" />
	<script type="text/javascript">
	
		function query(){
			var url = $("#form1").attr("action")+"?"+$("#form1").serialize();
			//$("#form1").submit();
			add_and_edit(url);
		}
		
			
	$(function(){
		var img = "<img src='${path}/img/imgid.htm?mh=500&mw=500'/>";
		showBig(img);
	});
	</script>
	<div>
		<form action="${path}/ix/seal/set/list2.htm" id="form1" method="post">
		<input name='bank_id' value='${bank_id}' type="hidden"/>
			<h2>
				<div>印章状态查询</div>
			</h2>
			<div class="query">
				<table width="99.5%" border="0" align="center" cellpadding="0" cellspacing="5">
					<tr>
						<td width="80" align="right">
							<strong>印章名称：</strong>
						</td>
						<td width="200" align="left">
							<input name="srh_name" type="text" /> 
						</td>
						<td align="left">
							<a href="javascript:query();">
								<img src="${path}/style_cp/img/query.jpg" name="Image4" width="85" height="27" border="0" id="Image4" /> 
							</a>
						</td>
					</tr>
				</table>
			</div>
			
			<table width="99.5%" class="listlindex">
				<tr>
					<th>印章名称</th>
					<th>印模图片</th>
					<th>印章描述</th>
					<th>印章状态 </th>
				</tr>
				<c:if test="${fn:length(list)==0}">
					<tr>
						<td colspan="4"><div class="tip_div">暂无记录.</div></td>
					</tr>
				</c:if>	
				<c:forEach items="${list}" var="v">					
					<tr>
						<td>${v.name}</td>
						<td><a href="${path}/img/${v.file_id}.htm" target="_blank" class="banimg" id="${v.file_id}">
							<img src='${path}/img/${v.file_id}.htm?mh=50&mw=50'/>
							<p hidden class="hid">${v.file_id}</p></a></td>
						<td>${v.note}</td>
						<td>${v.flag}<c:if test="${v.flag=='停用'}">(${v.flag_stop })</c:if></td>
					</tr>
				</c:forEach>
				<c:if test="${fn:length(list)!=0}">
				<tr>
					<td colspan="4">
						<page:page page="${page}" is_ajax="true" ajax_id="add_edit_form" />
					</td>
				</tr>
				</c:if>
				
			</table>	
			<div id="response"></div>
		</form>	
		
	</div>
